import {Component, OnInit, Input, ViewEncapsulation, ChangeDetectionStrategy} from '@angular/core';
import {ToolsService} from '../../service/tools/tools.service';
import {ImageServeService} from "../../service/image/image-serve.service";
import {Router} from "@angular/router";
import {FeedRespVO} from "../../../interface";


@Component({
  selector: 'seed-feed-profile',
  templateUrl: './feed-profile.component.html',
  styleUrls: ['./feed-profile.component.scss'],
  // changeDetection:ChangeDetectionStrategy.OnPush,
  encapsulation: ViewEncapsulation.None
})
export class FeedProfileComponent implements OnInit {
  public userIcon: string;
  public articleIcon: string;
  @Input() feeds: FeedRespVO[];

  constructor(
    public router: Router,
    public tools: ToolsService,
    private imgService: ImageServeService
  ) {
    this.userIcon = imgService.getUserIcon();
    this.articleIcon = imgService.getMiddleArticleImgHolder();
  }

  ngOnInit() {
  }
}
